package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 传感设备表
 *
 * @author mr.zhou
 * @email zhouwei_ncie@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("ck_device_welding")
public class DeviceWelding implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer pianquId;
	private String deviceNo;
	private String deviceNum;
	private Integer shopId;
	private String deviceName;

	private Double lng;
	private Double lat;
	private String qrCodeUrl;

	/**
	 * 是否是自有设备  0 - 企业管理的 1 - 自有的
	 */
	private Integer isSelf;

	/**
	 * 是否是安全区域 0 - 默认可以移动的 1 - 固定安全区域
	 */
	private Integer isSafe;

	/**
	 * 设备状态  0 - 未激活  1 - 已激活
	 */
	private Integer state;

	private Integer deviceType;
	private Integer leaderAdminId;
	private Integer	leaderWxUserId;
	private String leaderName;
	private String leaderPhone;
	private String address;

	private String useWorkerName;
	private String useWorkerPhone;


	/**
	 *  电焊证书编号
	 */
	private String certificateNum;

	/**
	 * 借还状态  0 -换  1 - 借
	 */
	private Integer useState;

	private Double storeMeter;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastLocationTime;


	/**
	 *  是否是有断路器
	 */
	private Integer isHasBreaker;

	/**
	 *  断路器id
	 */
	private String fsrBreakerId;

	/**
	 *  断路器名称
	 */
	private String fsrDeviceName;

	private Integer provId;

	private Integer cityId;



	@TableField(exist = false)
	private String shopName;



	@TableField(exist = false)
	private FsrDevice fsrDevice;

	@TableField(exist = false)
	private FsrAssets fsrAssets;
}
